if the visible of cd btn "OK" is true then send mouseup to cd btn "OK"
if the showpict of this card is false then closehelp "Magic Help"
end closecard
-- part 9 (button)
-- low flags: 80
-- high flags: 0000
-- rect: left=20 top=50 right=342 bottom=402
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Obscure 1
-- part 5 (field)
-- low flags: 81
-- high flags: 2002
-- rect: left=33 top=194 right=331 bottom=418
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 21
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Magic Help
-- part 6 (button)
-- low flags: 80
-- high flags: C002
-- rect: left=33 top=177 right=195 bottom=418
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Magic Help
-- part 7 (button)
-- low flags: 80
-- high flags: 0001
-- rect: left=37 top=181 right=191 bottom=47
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Close box
----- HyperTalk script -----
on mousedown
set the hilite of me to true
set the icon of me to "closeboxstar"
end mousedown
on mouseStillDown
if the mouseLoc is within the rect of me then
set the hilite of me to true
set the icon of me to "closeboxstar"
else
set the icon of me to 0
set the hilite of me to false
end if
end mouseStillDown
on mouseUp
set the icon of me to 0
set the hilite of me to false
lock screen
put empty into field "cat3"
put empty into field "name3"
show card picture
hide card field "Magic Help"
hide card button "Magic Help"
hide me
show card field "Magic Index"
pop card
unlock screen with zoom close
end mouseUp
-- part 11 (field)
-- low flags: 80
-- high flags: 2002
-- rect: left=49 top=75 right=317 bottom=409
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Preferences
-- part 8 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=302 top=158 right=314 bottom=379
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 21
-- text size: 12
-- style flags: 0
-- line height: 14
-- part name: Magic Index
----- HyperTalk script -----
on mousedown
visual wipe left
go to card line clkln() of me
end mousedown
-- part 12 (button)
-- low flags: 80
-- high flags: A002
-- rect: left=117 top=288 right=306 bottom=188
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: OK
----- HyperTalk script -----
on mouseUp
global hldcd,MagicMenu
lock screen
hide me
hide card field "Preferences"
set the locktext of cd field "Magic Index" to true
set the Style of cd field "Magic Index" to transparent
set the showlines of cd field "Magic Index" to false
go to hldcd
unlock screen with visual zoom close
put cd fld "Magic Index" of cd 1 of this bg into MagicMenu
end mouseUp
-- part contents for background part 187
----- text -----
-- part contents for card part 5
----- text -----
This section can be used in many different ways to define the general effects of magical spells, potions, items, etc. The box beside the title space is actually a pop-up menu for general categorization
(Wizard, Priest, Potion...). You can modify this menu by selecting
ΓÇ£Preferences...ΓÇ¥ from the DM menu. The title can identify a specific level, school or sphere. DonΓÇÖt worry if fields become unaligned, itΓÇÖs temporary. Feel free to insert extra returns to make room for notes (if you can't fit your entire description on a single line).